package cn.hanyx.vlog.authservice.mapper;

import cn.hanyx.vlog.authservice.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * UserMapper
 *
 * @author CSS
 * @date 2021/11/10
 */
@Mapper
public interface UserMapper {

    @Select("select * from user where username = #{u} and password = #{p}")
    public User findByUAP(@Param("u") String username, @Param("p") String password);
}
